package com.bos.service.imp;

import com.bos.dao.IWorkOrderManagerDao;
import com.bos.domain.Workordermanage;
import com.bos.service.WorkOrderManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Administrator
 */
@Service
@Transactional
public class WorkOrderManagerServiceImp implements WorkOrderManagerService {

    @Autowired
    private IWorkOrderManagerDao workOrderManagerDao;


    @Override
    public void save(Workordermanage workordermanage) {
        workOrderManagerDao.saveOrUpdate(workordermanage);
    }

    @Override
    public void delete(Workordermanage[] workordermanage) {
        for (Workordermanage wom : workordermanage) {
            workOrderManagerDao.delete(wom);
        }
    }

}
